Release 10.1A: OpenEdge Data Management:
SQL Reference
ATAN2
Returns the arctangent of the x and y coordinates specified by
expression1andexpression2.Syntax
Example
The following example illustrates two ways to use the
ATAN2function:
Notes
ATAN2takes the ratio of two sides of a right triangle and returns the corresponding angle. The ratio is the length of the side opposite the angle divided by the length of the side adjacent to the angle.expression1andexpression2specify the x and y coordinates of the end of the hypotenuse opposite the angle.- The result is expressed in radians and is in the range -pi/2 to pi/2 radians. To convert degrees to radians, multiply degrees by pi/180. To convert radians to degrees, multiply radians by 180/pi.
- Both
expression1andexpression2must evaluate to approximate numeric data types.Compatibility
ODBC compatible
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |